# $Id$
# Maintainer: David Mott <mott.david.j@gmail.com>

pkgname=dialog
pkgver=1.3_20180621
pkgrel=1
pkgdesc="A tool to display dialog boxes from shell scripts"
arch=('i686' 'x86_64')
url="https://invisible-island.net/dialog/"
license=('LGPL2.1')
makedepends=('ncurses-devel')
depends=('ncurses')
source=(https://invisible-mirror.net/archives/$pkgname/$pkgname-${pkgver/_/-}.tgz)
sha256sums=('4a4859e2b22d24e46c1a529b5a5605b95503aa04da4432f7bbd713e3e867587a')

build() {
  cd "$srcdir/$pkgname-${pkgver/_/-}"

  ./configure \
    --prefix=/usr \
    --enable-nls \
    --with-ncursesw
  make dialog.exe.exe
  mv dialog.exe.exe dialog.exe
}

package() {
  cd "$srcdir/$pkgname-${pkgver/_/-}"
  make DESTDIR="$pkgdir" install-full
}
